package com.hqj.demo;

import java.util.Scanner;

/**
 * 测试类
 */
public class Test01 {
    /**
     * 程序的入口
     * @param args
     */
    public static void main(String[] args) {
        Login l = new Login();
        l.main();
        Scanner scan = new Scanner(System.in);
        try {
            int a = scan.nextInt();
            if(a>=0&&a<=3){

                switch (a){
                    case 0:
                        System.exit(0);
                        break;
                    case 1:
                        l.register();
                        break;
                    case 2:
                        l.login();
                        break;
                    case 3:
                        l.login();
                        break;
                    default:
                        break;
                }
            }else{
                System.out.println("输入内容不规范");
            }
        }catch (Exception e){
            System.out.println("输入内容格式不正确,错误信息内容:"+e.getMessage());
        }


    }
}
